<?php

    include('./library/conn.php');

    $id = $_REQUEST['id'];

    $str = $_REQUEST['str'];

    $sql = "update users set $str where id = '$id'";

    echo $sql;

    $mysqli->query($sql);

    $mysqli->close();

?>